package com.jy.classes.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jy.common.annotation.Excel;
import com.jy.common.core.domain.BaseEntity;

/**
 * 班级管理对象 class
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class Class extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级ID，主键，自增 */
    private Long id;

    /** 班级名称，如一年级一班 */
    @Excel(name = "班级名称，如一年级一班")
    private String name;

    /** 年级，1-6表示小学一年级到六年级 */
    @Excel(name = "年级，1-6表示小学一年级到六年级")
    private Long grade;

    /** 班主任姓名 */
    @Excel(name = "班主任姓名")
    private String teacherInCharge;

    /** 学生管理信息 */
    private List<Student> studentList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setGrade(Long grade) 
    {
        this.grade = grade;
    }

    public Long getGrade() 
    {
        return grade;
    }

    public void setTeacherInCharge(String teacherInCharge) 
    {
        this.teacherInCharge = teacherInCharge;
    }

    public String getTeacherInCharge() 
    {
        return teacherInCharge;
    }

    public List<Student> getStudentList()
    {
        return studentList;
    }

    public void setStudentList(List<Student> studentList)
    {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("grade", getGrade())
            .append("teacherInCharge", getTeacherInCharge())
            .append("createTime", getCreateTime())
            .append("studentList", getStudentList())
            .toString();
    }
}
